<?php

/**
 * Shrinker_IndexController
 * 
 * Работа с ссылками
 * 
 * @author 
 */
class Shrinker_FlyController extends Core_Controller_Action 
{
    
        public function init()
    {
        /* Initialize */
        parent::init();
        
        // disable layout
        $this->_helper->layout->disableLayout();
        $this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');
    }
  
    /**
     * Перенаправление по ссылке
     */
    public function flyAction()
    {
$url = $this->_getParam('url');

$flySetting = Shrinker_Model_Utilities::fly($url);

//if(!$flySetting)
//    $this->_helper->redirector('index');


print_r($flySetting);
//$this->view->link = $val->long_url;      
    }    
}
